package com.zh.web.base;

import com.alibaba.druid.support.spring.stat.annotation.Stat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.sun.jdi.ShortType;
import com.zh.web.enums.SortType;
import com.zh.web.enums.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "基础分页参数")
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BasePageDto implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "页码默认为1")
    private Long pageNum = 1L;
    @ApiModelProperty(value = "每页条数默认为10")
    private Long pageSize = 10L;
    @ApiModelProperty(value = "创建开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty(value = "创建截至时间")
    private LocalDateTime endTime;
    @ApiModelProperty(value = "排序规则 默认降序")
    private SortType sortType = SortType.DESC;

}

